<%--
  Created by IntelliJ IDEA.
  User: 张圣旭
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>身份认证系统</title>
    <jsp:include page="/base.jsp"/>
    <link rel="stylesheet" href="assets/css/layui.css">
</head>
<body>
<form id='test_form' action='' method='' onsubmit='return checkForm()'>
    <input type='text' name='username' id="username" value=''/>
    <input type='password' name='pwd' id='password' value =''/>
    <button type='submit'>提交</button>
</form>
</body>
<script language="JavaScript" type="text/javascript" src="assets/layui.js"></script>
<script language="JavaScript" type="text/javascript" src="assets/js/SM3JS.js"></script>
<script language="JavaScript" type="text/javascript" src="assets/js/login.js"></script>
<script>
    function checkForm(){
        layer.msg("username");
        // var password=$("#password").val();
        // if (username==''){
        //     layer.msg("用户名不能为空！");
        //     return false;
        // }
        // if(password==''){
        //     layer.msg("密码不能为空！");
        //     return false;
        // }
        // //加密处理
        // //password = getSM3Hash(password);
        // $("#password").val(password);

        return false;
        //进行下一步
    }
</script>
</html>
